<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/3/21
  Time: 14:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>查询了所有的用户信息</h1>
<table border="1">
    <tr>
        <th>empId</th>
        <th>empName</th>
        <th>gender</th>
        <th>email</th>
        <th>dId</th>
        <th>department.deptId</th>
        <th>department.deptName</th>
    </tr>

    <c:forEach items="${emplist}" var="list">
        <tr>
            <td>${list.empId}</td>
            <td>${list.empName}</td>
            <td>${list.gender}</td>
            <td>${list.email}</td>
            <td>${list.dId}</td>
            <td>${list.department.deptId}</td>
            <td>${list.department.deptName}</td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
